Skip to content

[cmake] On a fresh configure, remove possibly outdated pcms.#22751

Draft
hageboeck wants to merge 1 commit into
root-project:masterfrom
hageboeck:cmake_clean_pcms
Draft

[cmake] On a fresh configure, remove possibly outdated pcms.#22751
hageboeck wants to merge 1 commit into
root-project:masterfrom
hageboeck:cmake_clean_pcms

Conversation

@hageboeck

Copy link
Copy Markdown
Member

When CMake is run without an existing cache, or with cmake --fresh, remove leftover pcms in lib/. This can fix a build with broken pcms that don't get regenerated without needing to clean the entire build.

More details

The underlying problem is the fact that rootcling_stage1 builds some pcms as side effects (e.g. std.pcm), and CMake doesn't know about these. It therefore can't know if they are out of date, and it can't instruct the build-system generator to clean them when the clean target is invoked, or update them if they are out of date.

Although wiping the pcms only cures the symptoms, it could make the life of the developer a bit better until all pcms are correctly tracked by CMake.

When CMake is run without an existing cache, or with cmake --fresh, remove
leftover pcms in lib/. This can fix a build with broken pcms that don't
get regenerated without needing to clean the entire build.
@hageboeck hageboeck self-assigned this Jul 3, 2026
@hageboeck hageboeck added the clean build Ask CI to do non-incremental build on PR label Jul 3, 2026
@hageboeck hageboeck requested a review from silverweed July 3, 2026 13:38
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

Test Results

    21 files      21 suites   3d 3h 3m 33s ⏱️
 3 868 tests  3 834 ✅   0 💤 34 ❌
71 219 runs  71 075 ✅ 110 💤 34 ❌

For more details on these failures, see this check.

Results for commit 8ae89a0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clean build Ask CI to do non-incremental build on PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant